﻿@model orienta.ViewModels.Dependencia

@{
    ViewBag.Title = "Buscar";
}

<h2>Buscar</h2>
<link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />

<script src="@Url.Content("~/js/niftycube.js")"  type="text/javascript" ></script>
        <script src="@Url.Content("~/js/funciones.js")"  type="text/javascript" ></script>
        <script src="@Url.Content("~/js/solicitud.js")"  type="text/javascript" ></script>
        <script src="@Url.Content("~/js/calendario.js")" type="text/javascript" ></script>
        <script src="@Url.Content("~/js/ajax.js")" type="text/javascript" ></script>
        <script src="@Url.Content("~/js/midis.js")" type="text/javascript" ></script>
        
        <script src="@Url.Content("~/js/wick.js")" type="text/javascript" ></script>
        
        <link href="@Url.Content("~/css/wick.css")" rel="stylesheet" type="text/css" />


<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-1.9.1.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui.js")" type="text/javascript"></script>

<script src="@Url.Content("~/js/usuario.js")" type="text/javascript"></script>

<script type="text/javascript">
    var dataDependencia;
    window.onload = function () {
        cargarAutoCompleteDependenciaAll();
        verBandejaUsuario();
    }
</script>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
<center>

            <div style="width: 840px;">
                <table  width="100%" cellpadding="0" border="0"  cellspacing="0">
                    <tr>
                        <td>
                            <table class="tablaPrincipal_MIDIS"  width="100%" cellpadding="3" border="0"  cellspacing="0">
                                <tr>
                                    <td>
                                        <table cellpadding="0" cellspacing="0" border="0"  width="100%">
                                            <tr>
                                                <td>
                                                    <table  class="tablaTitulo_MIDIS" style="width:180PX;" cellpadding="2" cellspacing="0" border="0">
                                                        <tr>
                                                            <td  align="center">
                                                                <div id="general" class="divTitulo_MIDIS" style="width:180PX;">
                                                                    <span style="background-color:#b50055;color:white;">[BUSCAR DEPENDENCIA]</span>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table width="100%" class="tablaInterna_MIDIS" cellpadding="0">
                                                        <tr><td>&nbsp;</td></tr>
                                                        <tr>
                                                            <td align="center">
                                                                <table width="99%" border="1" cellpadding="3" cellspacing="0" class="tablaPrincipalSin">
                                                                    <tbody class="tituloTextNormal">
                                                                        <tr align="left">
                                                                            <td>Dependencia:</td>
                                                                            <td>
                                                                            @Html.TextBoxFor(model => model.sDescripcion, new { autocomplete = "OFF", records = "1", letra = "", dataSrc = "dataDependencia", size = "52", alt = "", @class = "cajaTextoMayuscula wickEnabledAuto", ondblclick = "javascript:limpiaCaja(this);" })
                                                                            </td>
                                                                            <td>
                                                                            <input type="hidden" name="idUsuario" id="idUsuario" value="@ViewBag.idUsuario" />
                                                                            <input type="button" name="Agregar" value="Agregar" onclick="agregarDependenciaBandejaUsuario();" />
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                        </tr>
                                                        <tr><td>&nbsp;</td></tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr><td>&nbsp;</td></tr>
                            </table>
                        </td>
                    </tr>
                    <tr><td>&nbsp;</td></tr>
                    
                </table>
            </div>
        </center>
}    

<div id="divDependencia" style="display:none"></div>

<div id="procesando1"></div>
<div id="divDatosGenerales" style="overflow: auto; width: 100%; height: 100%;">
</div>

<div id="procesando2"></div>
<div id="divDatosBandeja" style="overflow: auto; width: 100%; height: 100%;">
</div>
